package com.student.demo.config;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 权限注解
 * @author jk
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface RolePermission {

    /**
     * 登录权限
     * @return
     */
    boolean login() default true;

    /**
     *角色权限
     * @return
     */
    String role() default "";
}
